package com.hnevc.wangyu;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Adapter;
import android.widget.BaseAdapter;

import java.util.List;

public class Adapter implements BaseAdapter {

private List list;
private Context context;
public Adapter(Context context) {
    this.context = context;
}
public void setList(List list) {
    this.list = list;
}
    @Override
    public int getCount() {
        return 0;
    }

    @Override
    public Object getItem(int position) {
        return list.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        ViewHolder viewHolder;
        if (convertView == null){
            convertView = View.inflate(context,R.layout.dingcan);
            convertView.setTag(viewHolder);

    }
}

    private class ViewHolder {
    }
}
